def equa(x):
    x = float(x)
    y = x ** 2 - 5 * x + 6
    return y


def judge(x):
    if 0 == equa(x):
        w = ''
    else:
        w = '不'
    print('x=%f时，等式'%(x), w, '成立', sep='')


judge(2)

for x in range(1, 11):
    judge(x)
